package org.liukai.tutorial.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Login & Denied
 * 
 * @author liukai
 * 
 */
@Controller
public class LoginLogoutController {

	protected static Logger logger = Logger.getLogger("controller");

	@RequestMapping(value = "/login", method = RequestMethod.GET)
	public String getLoginPage() {
		logger.debug("Received request to show login page");
		return "login";
	}

	@RequestMapping(value = "/denied", method = RequestMethod.GET)
	public String getDeniedPage() {
		logger.debug("Received request to show denied page");
		return "deniedpage";

	}
}
